package mavedome.oo;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;

public class App 
{
    public static void main( String args[] ) throws Exception
    {
       System.out.println("start firefox browser...");
       System.setProperty("webdriver.firefox.bin", "D:\\programs\\firefox\\firefox.exe");
       ProfilesIni pi =new ProfilesIni();
       FirefoxProfile profile = pi.getProfile("default");
       WebDriver dirver =new FirefoxDriver();
       dirver.manage().window().maximize();
       dirver.get("http://www.baidu.com/");
       
    }
}
